<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<script type="text/javascript" src="<s:url value="/js/centrallaboratory.js"/>"></script>
<script type="text/javascript" src="<s:url value="/js/commonAddress.js"/>"></script>

<s:form id="formEdit" cssClass="tableEdit"  >
    <s:hidden name="id" value="%{editableLaboratory.id}"/>
    <s:textfield label="Laboratory" name="name" value="%{editableLaboratory.name}"/>
    <s:hidden name="address.id" value="%{editableLaboratory.address.id}"/>
    <s:textfield label="Address" name="address.address" value="%{editableLaboratory.address.address}"/>
    <s:hidden label="City" name="address.city" id="addressCity" value="%{editableLaboratory.address.city}"/>
    <s:hidden label="Province" name="address.province" id="addressProvince" value="%{editableLaboratory.address.province}"/>
    <s:hidden label="Country" name="address.country" id="addressCountry" value="%{editableLaboratory.address.country}"/>
    <s:include value="../address/addressedit.jsp"/>

        <s:submit value="Save" id="save" action="save" onclick="beforeSave();validate();"/>
        <s:if test="%{editableLaboratory.id != null}">
            <s:submit value="Delete" name="delete" action="delete"/>
        </s:if>


</s:form>


<script type="text/javascript">
    $('#centralLaboratory').css({"color":"#EE5102","fontWeight":"bold"});
</script>